//
//  Cook_Thir_View.m
//  Cook Street
//
//  Created by dllo on 15/8/10.
//  Copyright (c) 2015年 LANOU. All rights reserved.
//

#import "Cook_Thir_View.h"
#define WIDTH ([UIScreen mainScreen].applicationFrame.size.width)
#define HEIGHT ([UIScreen mainScreen].applicationFrame.size.height)

@implementation Cook_Thir_View

-(id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        _backgroundView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];
        
        _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 210 , WIDTH, 50)];
        _titleLabel.font = [UIFont systemFontOfSize:20];
        [_backgroundView addSubview:_titleLabel];
        _tagTitle = [[UILabel alloc]initWithFrame:CGRectMake(20, 210  + 50, 200, 30)];
        _tagTitle.text = @"介绍";
        _tagTitle.font = [UIFont systemFontOfSize:18];
        _tagTitle.textColor = [UIColor colorWithRed:192./255. green:130./255. blue:80./255. alpha:1.];
        [_backgroundView addSubview:_tagTitle];
        
        _tableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, self.frame.size.height) style:UITableViewStylePlain];
        [self addSubview:_tableView];
        _tableView.tableHeaderView = self.backgroundView;
        _tableView.separatorStyle = UITableViewCellSelectionStyleNone;
        
        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
